package com.brilliance.project.webapp.form.sysmanage;

import java.util.Date;

import com.brilliance.project.common.PropertyConstants;
import com.brilliance.project.dao.entity.Agent;

/**
 * 登录管理用户
 * 
 * @author HLJ
 * 
 */
public class AgentForm extends Agent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 登录后，获得的sessionId
	private String sessionId;
	// 登录时间
	private Date loginTime;
	// 用户所属部门名称
	private String depart_name;
	// 是否踢出已在异地登录的用户
	private String kickOut = "N";
	// 重复输入密码
	private String agent_pwd_rp;
	// 用户状态String类型
	private String agent_flag_s;

	/*
	 * 用户状态
	 */
	private String agent_flagDsp;

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getDepart_name() {
		return depart_name;
	}

	public void setDepart_name(String depart_name) {
		this.depart_name = depart_name;
	}

	public String getKickOut() {
		return kickOut;
	}

	public void setKickOut(String kickOut) {
		this.kickOut = kickOut;
	}

	public String getAgent_pwd_rp() {
		return agent_pwd_rp;
	}

	public void setAgent_pwd_rp(String agent_pwd_rp) {
		this.agent_pwd_rp = agent_pwd_rp;
	}

	public String getAgent_flagDsp() {
		if (null == this.getAgent_flag()) {
			return "";
		}
		if (this.getAgent_flag().intValue() == 0) {
			return PropertyConstants.AGENT_FLAG_0;
		} else if (this.getAgent_flag().intValue() == 1) {
			return PropertyConstants.AGENT_FLAG_1;
		} else if (this.getAgent_flag().intValue() == 9) {
			return PropertyConstants.AGENT_FLAG_9;
		} else {
			return agent_flagDsp;
		}
	}

	public void setAgent_flagDsp(String agent_flagDsp) {
		this.setAgent_flag(new Integer(agent_flagDsp));
		this.agent_flagDsp = agent_flagDsp;
	}

	public String getAgent_flag_s() {
		if (null != this.getAgent_flag()) {
			return this.getAgent_flag().toString();
		}
		return "0";
	}

	public void setAgent_flag_s(String agent_flag_s) {
		if (null == agent_flag_s || "".equals(agent_flag_s)) {
			this.setAgent_flag(new Integer(0));
		} else {
			this.setAgent_flag(Integer.parseInt(agent_flag_s));
		}
	}

}
